<?php echo $html->script('facturas/get_valesalida.js'); ?>
<div id="facturaDialog" class="hide">
	<h2 id="summary"></h2>
	<table class="tablaFormHeader"><?php echo
			'<tr>'
				.'<td>'.__('Numero', true).'</td>'
				.'<td><div class="span-6">:&nbsp;'.$notaingreso['Notaingreso']['numero'].'</div></td>'
				
				.'<td>'.__('Almacen', true).' </td>'
				.'<td>:&nbsp;'.$notaingreso['Almacen']['descripcion'].'</td>'
			.'</tr>'
			
			.'<tr>'
				.'<td>'.__('Orden de compra', true).' </td>'
				.'<td>:&nbsp;'.$notaingreso['Ordencompra']['numero'].'</td>'
			.'</tr>'
			
			.'<tr>'
				.'<td>'.__('Proveedor', true).' </td>'
				.'<td>:&nbsp;'.$notaingreso['Ordencompra']['proveedor'].'</td>'
			.'</tr>'
			.'<tr>'		
				.'<td>'.__('Observaciones', true).' </td>'
				.'<td colspan=3>'; ?>
				<textarea cols=90 readonly="readonly" class="readonly FormElement text ui-widget-content ui-corner-all" name="data[Ordencompra][observacion]" id="OrdencompraObservacion">
					<?php echo $ordencompra['Ordencompra']['observacion']; ?>
				</textarea> 
				</td>
			</tr>
		</table>

	<br/>
	<div class="span-15">
		<table id="detalleordencomprasForm" class="tablaForm tablaFormInput">
			<thead>
				<tr>
					<th class="header"><div class="span-3 last">Codigo</div></th>
					<th class="header"><div class="span-7 last">Descripcion</div></th>
					<th class="header"><div class="span-2 last">Und x Cj</div></th>
					<th class="header"><div class="span-3 last">Unidad</div></th>
					<th class="header"><div class="span-3 last">Cantidad</div></th>
				</tr>
			</thead>
			<tbody><?php 
			foreach($detallenotaingreso as $detalle):
			echo
		 	'<tr class="ui-widget-content jqgrow ui-row-ltr">'
				.'<td class="text_center">'.$detalle['Articulo']['codigo'].'</td>'
				.'<td>'.$detalle['Articulo']['descripcion'].'</td>'
				.'<td class="text_right">'.$detalle['Articulo']['unidadxcaja'].'</td>'
				.'<td>'.$detalle['Unidad']['descripcion'].'</td>'
				.'<td class="text_right">'.$detalle['Detallenotaingreso']['cantidad'].'</td>'
			.'</tr>';
			endforeach;
			?></tbody>
		</table>
	</div>	
</div>